package com.pactera.madp.admin.api.feign;

import com.pactera.madp.common.core.constant.SecurityConstants;
import com.pactera.madp.common.core.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * 远程系统同步服务
 */
@FeignClient(contextId = "remoteSyncCpService", value = ServiceNameConstants.CP_SERVICE)
public interface RemoteSyncCpService {

    @GetMapping("/sync/business/psn")
    void syncPsnBusiness(@RequestHeader(value = SecurityConstants.FROM) String from);

}
